package com.leo.erp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("tb_unit")
public class Unit {
	@TableId(value = "unitId", type = IdType.AUTO)
	private int unitId;
	
	@TableField("uName")
	private String uName;//名称，支持多单位
	
	@TableField("basicUnit")
	private String basicUnit;//基础单位
	
	@TableField("otherUnit")
	private String otherUnit;//副单位
	
	@TableField("ratio")
	private int ratio;//比例
	
	@TableField("tenantId")
	private int tenantId;//租户id
	
	@TableField("deleteFlag")
	private String deleteFlag;//删除标记，0未删除，1删除

	public int getUnitId() {
		return unitId;
	}

	public void setUnitId(int unitId) {
		this.unitId = unitId;
	}

	public String getuName() {
		return uName;
	}

	public void setuName(String uName) {
		this.uName = uName == null ? null : uName.trim();
	}

	public String getBasicUnit() {
		return basicUnit;
	}

	public void setBasicUnit(String basicUnit) {
		this.basicUnit = basicUnit == null ? null : basicUnit.trim();
	}

	public String getOtherUnit() {
		return otherUnit;
	}

	public void setOtherUnit(String otherUnit) {
		this.otherUnit = otherUnit == null ? null : otherUnit.trim();
	}

	public int getRatio() {
		return ratio;
	}

	public void setRatio(int ratio) {
		this.ratio = ratio;
	}

	public int getTenantId() {
		return tenantId;
	}

	public void setTenantId(int tenantId) {
		this.tenantId = tenantId;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag == null ? null : deleteFlag.trim();
	}
	
	
}
